package com.viphuli.common;

import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;

import com.viphuli.http.bean.PageBaseBean;
/**
 * Fragment和其它组件通信（接口穿透）
 * 
 * @author li.li
 *
 */
public interface IFrag<T extends PageBaseBean> {
	
	void onBackPressed();
	
	void onActivityResult(int requestCode, int resultCode, Intent data);
	
	void onRequestResonse(T page);
	
	boolean isShowBack();
	
	void setRefreshing(boolean isShow);
	
	void setMore(boolean isShow);
	
	boolean onCreateOptionsMenu(Menu menu);
	
	boolean onOptionsItemSelected(MenuItem item);
	
	
	

}
